@extends('admin.index')
@section('content')
<div class="panel admin-panel margin-top" id="add">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 增加内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="/admin/info/{{$list->id}}">
    <input type="hidden" name="_method" value="PUT">
    <input type="hidden" name="_token" value="{{csrf_token()}}">
      <div class="form-group">
        <div class="label">
          <label>名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="{{$list->name}}" name="name" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div>
        <div class="form-group">
            <div class="label">
              <label>状态：</label>
            </div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            
              <input type="radio" class="" name="status" value="0" {{$list->status==0?'checked':''}}/>显示&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <input type="radio" class="" name="status" value="1" {{$list->status==1?'checked':''}}/>隐藏
                    <div>
          @if (session('msg'))
              <div class="alert alert-success">
                  {{ session('msg') }}
              </div>
          @endif
      </div>      
              <div class="tips"></div>
        </div>
        <div class="form-group">
            <div class="label">
              <label></label>
            </div>
            <div class="field">
              <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
            </div>
        </div>
    </form>
  </div>
</div>
@stop